﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>
<%@ Register Src="~/RateContent.ascx" TagName="RateContent" TagPrefix="uc1" %>
<%@ Register Src="~/MainContent.ascx" TagName="MainContent" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
		<title>Simpla Admin</title>  
		<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />	
		<script type="text/javascript" src="resources/scripts/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="resources/scripts/simpla.jquery.configuration.js"></script>
		<script type="text/javascript" src="resources/scripts/facebox.js"></script>
		<script type="text/javascript" src="resources/scripts/jquery.wysiwyg.js"></script>
		<script type="text/javascript">
		    $(function() {
		        $.get("SellerRateDetails.aspx",
		                 { "page": "1" },
		                 function(text, textStatus) {
		                     $("#content").html(text);
		                 });
		        alert($("#content a").text());
		        $("#nav-top-li-main").click(function() {
		            $("#main-content2").attr("style", "display:none");
		            $("#main-content2 .notification").attr("style", "display:none");
		            $("#main-content1").attr("style", "");
		        });
		        $("#nav-top-li-rate").click(function() {
		            $("#main-content1").attr("style", "display:none");
		            $("#main-content2").attr("style", "");
		        });

		        $(".nav-top-li li a").click(function() {
		            $.each($(".nav-top-li li a"), function() {
		                $(this).removeAttr("class");
		            });
		            $(this).attr("class", "current");
		        });
		        $(".nav-top-li>a").click(function() {
		            $.each($(".nav-top-li>a"), function() {
		                $(this).removeAttr("class");
		                $(this).attr("class", "nav-top-item");
		            });
		            $(this).removeAttr("class");
		            $(this).attr("class", "nav-top-item current");
		        });
		        $(".number").click(function() {
		            $.each($(".number"), function() { $(this).removeAttr("class").attr("class", "number") });
		            $(this).attr("class", "number current");
		            var page = $(this).text();
		            $.get("SellerRateDetails.aspx",
		                 { "page": "" + page + "" },
		                 function(text, textStatus) {
		                     $("#content").html(text);
		                 });
		        });
		        $("#hNext").click(function() {
		            $.each($(".number"), function() {
		                var page = parseInt($(this).text());
		                $(this).text(page + 4);
		            });
		            var currentPage = $(".pagination .current").text();
		            $.get("SellerRateDetails.aspx",
		                 { "page": "" + currentPage + "" },
		                 function(text, textStatus) {
		                     $("#content").html(text);
		                 });
		        });
		        $("#hPrevious").click(function() {
		            $(".number").each(function(i) {
		                var page = parseInt($(this).text());
		                if (page > 4)
		                    $(this).text(page - 4);
		            });
		            var currentPage = $(".pagination .current").text();
		            $.get("SellerRateDetails.aspx",
		                 { "page": "" + currentPage + "" },
		                 function(text, textStatus) {
		                     $("#content").html(text);
		                 });
		        });
		        $("#hFirst").click(function() {
		            $.get("SellerRateDetails.aspx",
		                 { "page": "1" },
		                 function(text, textStatus) {
		                     $("#content").html(text);
		                 });
		            $(".number").each(function(i) {
		                $(this).text(i + 1);
		            });
		        });
		        $("#hLast").click(function() {
		            var page = 1;
		            if (parseInt('<% =Session["pageCount"] %>') % 5 == 0) {
		                page = parseInt('<% =Session["pageCount"] %>') / 5;
		            }
		            else {
		                page = parseInt('<% =Session["pageCount"] %>') / 5 + 1;
		            }
		            if (page != 0) {
		                $.get("SellerRateDetails.aspx",
		                 { "page": "" + pageCount + "" },
		                 function(text, textStatus) {
		                     $("#content").html(text);
		                 });
		            }
		        });
		    });
		</script>
</head>
  
	<body><form id="form1" runat="server"><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->
			
			<h1 id="sidebar-title"><a href="#">Simpla Admin</a></h1>
		  
			<!-- Logo (221px wide) -->
			<a href="#"><img id="logo" src="resources/images/logo.png" alt="Simpla Admin logo" /></a>
		  
			<!-- Sidebar Profile links -->
			<div id="profile-links">
				Hello, <a href="#" title="Edit your profile"><% =Session["userName"] %></a>
				<br />
				<a href="#" title="View the Site">View the Site</a> | <a href="#" title="Sign Out">Sign Out</a>
			</div>        
			<script type="text/javascript">
			    $("#main-nav>li>a").click(function() { alert(111); });
			</script>
			<ul id="main-nav">  <!-- Accordion Menu -->
				<li class="nav-top-li"> 
					<a href="#" class="nav-top-item current" id="nav-top-li-main"> <!-- Add the class "current" to current menu item -->
					管理首页
					</a>
				</li>
				<li class="nav-top-li"> 
					<a href="#" class="nav-top-item" id="nav-top-li-rate"> <!-- Add the class "current" to current menu item -->
					评价管理
					</a>
					<ul>
						<li><a href="#" id="nav-top-li-rate-resent">近期评价</a></li>
						<li><a href="#" id="nav-top-li-rate-mind">评价提醒</a></li> <!-- Add class "current" to sub menu items also -->
					</ul>
				</li>
				
				<li class="nav-top-li">
					<a href="#" class="nav-top-item">
						设置
					</a>
					<ul>
						<li><a href="#">General</a></li>
						<li><a href="#">Design</a></li>
						<li><a href="#">Your Profile</a></li>
						<li><a href="#">Users and Permissions</a></li>
					</ul>
				</li>      
				
			</ul> <!-- End #main-nav -->
			
			<div id="messages" style="display: none"> <!-- Messages are shown when a link with these attributes are clicked: href="#messages" rel="modal"  -->
				
				<h3>信用详情</h3>
			 
				<p>
					<strong>订单编号：</strong>1234556678<br />
					<strong>商品标题：</strong><br />
					<strong>评价：</strong><br />
					<strong>评价内容：</strong><br />					
				</p>
			    <p>
			    	<strong>姓名：</strong><br />
					<strong>联系电话：</strong><br />
					<strong>地址：</strong><br />
			    </p>
				
			</div> <!-- End #messages -->
			
		</div></div> <!-- End #sidebar -->
		
		<div id="main-content"> <!-- Main Content Section with everything -->
					
			<noscript> <!-- Show a notification if the user has disabled javascript -->
				<div class="notification error png_bg">
					<div>
						Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
					Download From <a href="http://www.exet.tk">exet.tk</a></div>
				</div>
			</noscript>
			
			<!-- Page Head -->
			<h2>Welcome <% =Session["userName"] %></h2>
			<p id="page-intro">What would you like to do?</p>
			
			<div class="clear"></div> <!-- End .clear -->
			<div class="notification attention png_bg">
				<a href="#" class="close"><img src="resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
				<div>
					请使用IE6以上的浏览器访问本网站，否则的话可能出现异常 
				</div>
			</div>
		    <div id="main-content1">
		        <uc2:MainContent ID="MainContent1" runat="server" />
		    </div>			
		    <div id="main-content2" style="display:none">
		        <uc1:RateContent ID="RateContent1" runat="server" />
		    </div>

		    <div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						&#169; Copyright 2009 xtremesoft.com | Powered by <a href="http://themeforest.net/item/simpla-admin-flexible-user-friendly-admin-skin/46073">Simpla Admin</a> | <a href="#">Top</a>
				</small>
			</div><!-- End #footer -->
		</div><!--End Main Content-->
	</div></form></body>
  

<!-- Download From www.exet.tk-->
</html>
